<%@ page language="java" import="java.util.*" pageEncoding="utf-8"%>
<%@ taglib uri="/struts-tags" prefix="s"%>
<%
String path = request.getContextPath();
String basePath = request.getScheme()+"://"+request.getServerName()+":"+request.getServerPort()+path+"/";
%>

<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html>
  <head>
    <base href="<%=basePath%>">
    
    <title>My JSP 'addEmployee.jsp' starting page</title>
    
	<meta http-equiv="pragma" content="no-cache">
	<meta http-equiv="cache-control" content="no-cache">
	<meta http-equiv="expires" content="0">    
	<meta http-equiv="keywords" content="keyword1,keyword2,keyword3">
	<meta http-equiv="description" content="This is my page">
	<!--
	<link rel="stylesheet" type="text/css" href="styles.css">
	-->

  </head>
  
  <body>
<table border="0" width="600px">
<tr>
<td align="center" style="font-size:24px; color:#666"> 员工修改</td>
</tr>
<tr>
<td align="right" > 
<a href="javascript:document.getElementById('saveForm').submit()">保存</a> &nbsp;&nbsp;
<a href="javascript:history.go(-1)">退回</a>
</td>
</tr>
</table>
<br/>

<s:form id="saveForm" action="employee_updata" method="post" namespace="/" theme="simple">
<s:hidden name="eid" value="%{model.eid}"/>	
<s:hidden name="username" value="%{model.username}"/>
<s:hidden name="password" value="%{model.password}"/>
	<table border='0' cellpadding="0"  cellspacing="10">
	
	<tr>
	
	<td>姓名：</td>
	<td><s:textfield name="ename" value="%{model.ename}"/></td>
	<td>性别：</td>
	<td><s:radio name="gender" list="{'男','女'}"  value="%{model.gender}"/></td>
	</tr>
	<tr>
	<td>出生日期：</td>
	<td><input type="date" name="birthday" value="<s:date name="model.birthday" format="yyyy-MM-dd"/>" /></td>
	<td>入职时间：</td>
	<td><input type="date" name="joinDate"  value="<s:date name="model.joinDate" format="yyyy-MM-dd"/>"/></td>
	</tr>
	
	<tr>
	<td>所属部门：</td>
	<td><s:select name="department.did" list="list" listKey="did" listValue="dname" headKey="" headValue="--请选择--" value="%{model.department.did }"/></td>
	<td>编号：</td>
	<td><input type="text" name="eno"  value="${model.eno }" /></td>
	</tr>
	</table>
</s:form>

</body>
</html>
